<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    axios({
        url: 'https://www.baidu.com',
        method: "POST",
        data: [1, 2, 3]
    }).then(response => {
        console.log('/a', response.data)
        return response.data
    }, error => {
        console.log('错误', error.message)
    })

    axios({
        url: 'https://www.baidu.com',
        method: "POST",
        data: '1,2,3'
    }).then(response => {
        console.log('/a', response.data)
        return response.data
    }, error => {
        console.log('错误', error.message)
    })

    axios({
        url: 'https://www.baidu.com',
        method: "POST",
        data: { id: '1,2,3' }
    }).then(response => {
        console.log('/a', response.data)
        return response.data
    }, error => {
        console.log('错误', error.message)
    })


</script>